package com.czk.initializeBean;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * bean的初始化方式
 *
 * @Author:ChenZhangKun
 * @Date: 2021/4/28 15:20
 */
@Component
public class Animal implements InitializingBean {
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("animal对象被初始化了");
    }
}
